import calendar

def get_thanksgiving_day(year):
    month_calendar = calendar.monthcalendar(year,11)
    count = 0
    for day in month_calendar:
        if day[3] != 0:
            count += 1
        if count == 4:
            return day[3]

if __name__ == "__main__":
    year = int(input("请输入如年份:"))
    thanksgiving_day =get_thanksgiving_day(year)
    print(f"{year}年的感恩节是11月{thanksgiving_day}日")